package com.example.shiyansan.service;


import com.example.shiyansan.dto.UserLoginDTO;
import com.example.shiyansan.entity.User;
import com.example.shiyansan.vo.UserLoginVo;

public interface UserService {
    /**
     * 用户登录
     * @param userLoginDTO
     * @return
     * @throws Exception
     */
    UserLoginVo findByUsernameAndPassword(UserLoginDTO userLoginDTO) throws Exception;

    /**
     * 用户注册
     * @param user
     */
    void register(User user) throws Exception;
}
